<script>
export default {
	onLaunch: function() {
		console.log('App Launch');
	},
	onShow: function() {
		console.log('App Show');
	},
	onHide: function() {
		console.log('App Hide');
	},
	mounted() {
		uni.showTabBarRedDot ({
			index: 2
		}) ,
		uni.setTabBarBadge({
		  index: 2,
		  text: '13'
		})
		
	}
};
</script>

<style>
uni-tabbar .uni-tabbar__reddot {
	height: 20upx;
	border-radius: 10upx;
	left: 80upx;
	top: 10upx;
	padding: 0 10upx;
	font-size: 16upx;
	line-height: 20upx;
}
/*每个页面公共css */
.place {
	font-size: 28upx;
	color: #e1e1e1;
}
page {
	background-color: #F8F8F8;
}

@font-face {
  font-family: 'iconfont';  /* project id 1600659 */
  src: url('https://at.alicdn.com/t/font_1600659_qsicfg1dxmi.eot');
  src: url('https://at.alicdn.com/t/font_1600659_qsicfg1dxmi.eot?#iefix') format('embedded-opentype'),
  url('https://at.alicdn.com/t/font_1600659_qsicfg1dxmi.woff2') format('woff2'),
  url('https://at.alicdn.com/t/font_1600659_qsicfg1dxmi.woff') format('woff'),
  url('https://at.alicdn.com/t/font_1600659_qsicfg1dxmi.ttf') format('truetype'),
  url('https://at.alicdn.com/t/font_1600659_qsicfg1dxmi.svg#iconfont') format('svg');
}
.icon {
	font-size: 32upx;
	color: #333;
	font-family: iconfont;
	font-style: normal;
	display: inline;
}
</style>
